package org.spring.bse.home.model;

import java.sql.Timestamp;
import java.util.Calendar;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Stock
{

	private Integer scripCode;
	private String scripID;
	private String scripName;
	private String bseGroup;
	private String index;
	private Float faceValue;
	private String industry;
	private Float curValue;
	private Double curVolume;
	private Float chgValue;
	private Float chgPer;
	private Float dayHigh;
	private Float dayLow;
	private Float lastOpen;
	private Float lastClose;
	private Double marketCap;
	private String updatedAt;
	private String ISIN;
	private Timestamp lastTradeTime;
	private Timestamp lastUpdateTS;

	// Special Methods
	public Timestamp currentTimestamp()
	{
		Calendar cal = Calendar.getInstance();
		return new Timestamp(cal.getTimeInMillis());
	}

	// Regular GET/SET Methods
	public Integer getScripCode()
	{
		return scripCode;
	}

	public void setScripCode(Integer scripCode)
	{
		this.scripCode = scripCode;
	}

	public String getScripID()
	{
		return scripID;
	}

	public void setScripID(String scripID)
	{
		this.scripID = scripID;
	}

	public String getBseGroup()
	{
		return bseGroup;
	}

	public void setBseGroup(String bseGroup)
	{
		this.bseGroup = bseGroup;
	}

	public String getIndex()
	{
		return index;
	}

	public void setIndex(String index)
	{
		this.index = index;
	}

	public Float getFaceValue()
	{
		return faceValue;
	}

	public void setFaceValue(Float faceValue)
	{
		this.faceValue = faceValue;
	}

	public String getIndustry()
	{
		return industry;
	}

	public void setIndustry(String industry)
	{
		this.industry = industry;
	}

	public Float getCurValue()
	{
		return curValue;
	}

	public void setCurValue(Float curValue)
	{
		this.curValue = curValue;
	}

	public Float getChgValue()
	{
		return chgValue;
	}

	public void setChgValue(Float chgValue)
	{
		this.chgValue = chgValue;
	}

	public Float getChgPer()
	{
		return chgPer;
	}

	public void setChgPer(Float chgPer)
	{
		this.chgPer = chgPer;
	}

	public String getUpdatedAt()
	{
		return updatedAt;
	}

	public void setUpdatedAt(String updatedAt)
	{
		this.updatedAt = updatedAt;
	}

	public String getScripName()
	{
		return scripName;
	}

	public void setScripName(String scripName)
	{
		this.scripName = scripName;
	}

	public Double getCurVolume()
	{
		return curVolume;
	}

	public void setCurVolume(Double curVolume)
	{
		this.curVolume = curVolume;
	}

	public Float getDayHigh()
	{
		return dayHigh;
	}

	public void setDayHigh(Float dayHigh)
	{
		this.dayHigh = dayHigh;
	}

	public Float getDayLow()
	{
		return dayLow;
	}

	public void setDayLow(Float dayLow)
	{
		this.dayLow = dayLow;
	}

	public Float getLastOpen()
	{
		return lastOpen;
	}

	public void setLastOpen(Float lastOpen)
	{
		this.lastOpen = lastOpen;
	}

	public Float getLastClose()
	{
		return lastClose;
	}

	public void setLastClose(Float lastClose)
	{
		this.lastClose = lastClose;
	}

	public Double getMarketCap()
	{
		return marketCap;
	}

	public void setMarketCap(Double marketCap)
	{
		this.marketCap = marketCap;
	}

	public String getISIN()
	{
		return ISIN;
	}

	public void setISIN(String iSIN)
	{
		ISIN = iSIN;
	}

	public Timestamp getLastUpdateTS()
	{
		return lastUpdateTS;
	}

	public void setLastUpdateTS(Timestamp lastUpdateTS)
	{
		this.lastUpdateTS = lastUpdateTS;
	}

	public Timestamp getLastTradeTime()
	{
		return lastTradeTime;
	}

	public void setLastTradeTime(Timestamp lastTradeTime)
	{
		this.lastTradeTime = lastTradeTime;
	}

}
